package com.oyjd.ybx.bean.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * 商品分类实体
 * 
 * @author <b>欧建东<br/>
 *         Email:oyjd@163.com</b>
 * @version 1.0
 */
@Entity
@Table(name = "T_CLASSIFY")
public class Classify implements Serializable {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 2078868328150728375L;

	/**
	 * 分类ID
	 */
	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name = "CLASS_ID", length = 32)
	private String classId;

	/**
	 * 分类名称
	 */
	@Column(name = "CLASS_NAME", length = 20)
	private String className;

	/**
	 * 父分类
	 */
	@Column(name = "PID", length = 32)
	private String pid;

	/**
	 * 排序码
	 */
	@Column(name = "ORDER_KEY")
	private long orderKey;

	public String getClassId() {
		return classId;
	}

	public void setClassId(String classId) {
		this.classId = classId;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public long getOrderKey() {
		return orderKey;
	}

	public void setOrderKey(long orderKey) {
		this.orderKey = orderKey;
	}

}